The following code fragment (in Listing 3-16 ) assigns the "no controller" movie controller to the movie. You make this assignment if you don't want the standard QuickTime movie controller to appear. In this code sample, you want to create a set of sprite buttons in order to control user interaction with the penguins in the movie.
There may also be other occasions when it is useful to make a "no controller" assignment. For example, if you are creating non-linear movies--such as Hypercard stacks where you access the cards in the stack by clicking on buttons by sprites--you may wish to create your own sprite buttons.
Listing 16 Assigning the no controller movie controller
// select the "no controller" movie controller
myType = EndianU32_NtoB(myType);
SetUserDataItem(GetMovieUserData(myMovie), &myType, sizeof(myType),
kUserDataMovieControllerType, 1);
| Previous | Chapter Contents | Chapter Top | Next |